//
//  LRXAddrCell.m
//  路人侠
//
//  Created by zhangxulong on 3/15/16.
//  Copyright © 2016 zhangxulong. All rights reserved.
//

#import "LRXAddrCell.h"
@interface LRXAddrCell()
@property (nonatomic,strong) UILabel * addr;
@property (nonatomic,strong) UILabel * detailText;
@end
@implementation LRXAddrCell
- (UILabel *)addr{
    if (_addr == nil) {
        _addr = [[UILabel alloc]init];
    }
    return _addr;
}
- (UILabel *)detailText
{
    if (_detailText == nil) {
        _detailText = [[UILabel alloc]init];
    }
    return _detailText;
}

- (void)addrLayout:(LRXMapCellModel *)addrModel
{
    self.addr.text = addrModel.mapName;
    self.detailText.text = addrModel.mapDistrict;
    
    self.addr.frame = CGRectMake(65 * wScale, 26 * hScale, 520 * wScale, 30 * hScale);
    self.addr.font = [UIFont systemFontOfSize:28 * hScale];
    
    self.detailText.frame = CGRectMake(65 * wScale, 70 * hScale, 520 * wScale, 24 * hScale);
    self.detailText.font = [UIFont systemFontOfSize:24 * hScale];
    self.detailText.textColor = mainGrayColor;
    
    [self addSubview:self.detailText];
    [self addSubview:self.addr];
    
}
@end
